package com.woniu.apiimpl;



import com.woniu.api.HisBloodAPI;
import com.woniu.dto.QueryBloodDto;
import com.woniu.param.CreateBloodParam;
import com.woniu.param.QueryBloodParam;
import com.woniu.service.IHisBloodService;
import com.woniu.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 血检表 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-11-11
 */
@RestController
@RequestMapping("/blood")
public class HisBloodAPIImpl implements HisBloodAPI {

    @Resource
    private IHisBloodService bloodService;

    @Override
    public Result<QueryBloodDto> queryBlood(QueryBloodParam queryBloodParam) {
        System.out.println();
        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
        System.out.println("123");
        System.out.println("1234");
        System.out.println("12345");
        System.out.println("123456789");
        System.out.println("123456");
        System.out.println("1234567");
        System.out.println("123123");
        System.out.println("12341234");
        System.out.println("1234512345");
        System.out.println("123451");
        System.out.println("!2312");
        System.out.println("123");
        System.out.println("123123");
        System.out.println("w1");
        System.out.println("Q1");
        System.out.println("Q2");
        System.out.println("Q3");
        System.out.println("Q4");
        System.out.println("E1");
        System.out.println("E2");
        System.out.println("E3");
        System.out.println("E4");
        System.out.println("R1");
        System.out.println("T1");
        System.out.println("T2");
        System.out.println("master1");
        System.out.println("master11");
        QueryBloodDto queryBloodDto = bloodService.queryBlood(queryBloodParam);
        return Result.bulid(QueryBloodDto.class).setData(queryBloodDto);
    }

    @Override
    public Result<QueryBloodDto> createBlood(CreateBloodParam createBloodParam) {
        QueryBloodDto queryBloodDto = bloodService.createBlood(createBloodParam);
        return Result.bulid(QueryBloodDto.class).setData(queryBloodDto);
    }
}

